input = '''
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
'''
print(input.count('better'))
